package org.mc.request.es;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by hanlei on 2018/6/6
 */
@ApiModel(value = "项目request")
@Data
public class ProjectRequest {

    @ApiModelProperty(value = "项目ID",required = true)
    @NotNull(message = "项目ID不能为空")
    private Long projectId;

    @ApiModelProperty(value = "项目名称",required = true)
    @NotBlank(message = "项目名称不能为空")
    private String projectName;

    @ApiModelProperty(value = "项目类型(0,众筹 1，股权)",required = true)
    @NotNull(message = "项目类型不能为空")
    private int type;

    @ApiModelProperty(value = "金额",required = true)
    @NotNull(message = "金额不能为空")
    private BigDecimal money;

    @ApiModelProperty(value = "所属行业")
    private String industry;

    @ApiModelProperty(value = "描述")
    private String desc;

    @ApiModelProperty(value = "项目是否上架（0.未上架,1.已上架）",required = true)
    @NotNull(message = "项目是否上架不能为空")
    private int isOnsale;

    @ApiModelProperty(value = "项目上架时间",required = true)
    private Date onsaleTime;


}
